<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登陆页</title>
    <style>
        body{ margin:0; padding:0;}
        .xinXi{ width:30%; position:absolute; top:22%; right:13%; font-family:"微软雅黑"; }
        .xinXi .title{ width:80%; border-bottom:1px solid #7b8986; padding:10px 0; font-size:18px; color:#e20202; font-family:"微软雅黑";}
        .xinXi input{ height:20px; width:50%; text-indent:0.5rem; border:1px solid #bcbcbc; font-size:12px; margin-left:3%;}
        .xinXi .name{font-size:14px; margin:5% 0 0 10%; font-family:"微软雅黑"; color:#000;}
        .botton{ width:20%; margin:15% 0 0 35%; cursor:pointer;}
    </style>
</head>

<body>
<form  action="http://app.ky365.cn/mobile/WwScReg.do" id="WwScForm" name="WwScForm" method="post">
    <div class="login">
        <img style="width:100%; height:100%;" src="http://app.ky365.cn/mobile/images/wscImg/login.png"/>
        <div class="xinXi">
            <p class="title">欢迎登陆微伍商城</p>
            <p class="name" style="margin:17% 0 0 10%;">手机号：<input type="text" name="mobile" placeholder="请输入手机号" /></p>
            <p class="name">密&nbsp;&nbsp;&nbsp;码：<input type="password" name="password" placeholder="请输入密码"/></p>
            <img class="botton" src="http://app.ky365.cn/mobile/images/wscImg/denglu@2x.png" onClick="sc()"/>
        </div>
    </div>
    <input type="hidden" id="agentId" name="agentId" value="2170000512"/>
    <input type="hidden" id=retUrl name="retUrl" value="http://cashier.harmcere.com/agentmobile/login/test"/>
</form>
<script type="text/javascript">
    function sc(){
        var mobile  		= document.WwScForm.mobile;
        var password  		= document.WwScForm.password;
        if(mobile.value.trim() == ""){
            alert("请输入手机号");
            mobile.focus();
            return false;
        }

        if(mobile.value.trim().length != 11){
            alert("请输入正确手机号");
            mobile.focus();;
            return false;
        }

        if(password.value.trim() == ""){
            alert("请输入密码");
            password.focus();
            return false;
        }
        document.WwScForm.submit();
    }

</script>
</body>
</html>